from django.shortcuts import render
from django.core import serializers
from django.http import HttpResponse, JsonResponse
from app.models import user
# Create your views here.
def index(request):
    data = user.User.objects.all()[:10:1]
    args= serializers.serialize('json', data.fields)
    return HttpResponse(args, content_type="application/json")
